package com.shiwaixiangcun.customer.photo.utils;

import android.app.Activity;
import android.os.Environment;
import android.util.DisplayMetrics;

/**
 *
 * @author liweiqin
 * @date 2016/1/31
 */
public class DeviceUtils {
    public static boolean existSDCard() {
        return Environment.getExternalStorageState().equals("mounted");
    }

    public static DisplayMetrics getScreenPix(Activity activity) {
        DisplayMetrics displaysMetrics = new DisplayMetrics();
        activity.getWindowManager().getDefaultDisplay().getMetrics(displaysMetrics);
        return displaysMetrics;
    }
}
